package org.huihoo.ofbiz.smart.base.validation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * <p>
 * 检查要验证的<b>整数</b>是否小于或等于指定的最大值
 * </p>
 * 
 * @since 1.0
 */

@Documented
@Constraint(validatedBy = {})
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER})
@Retention(RUNTIME)
public @interface Max {
  String message() default "This value should be less than or equal to %s.";

  long value();

  ValidateProfile profile() default ValidateProfile.ALL;
}
